
import { useLocation, useNavigate } from 'react-router-dom'

import { Button } from 'antd'

const Home = ({ smallWindow, routerConfig }) => {
    const Navigate = useNavigate()
    const navList = routerConfig.filter(v => v.router_path !== 'Home' && v.router_status)
    return (
        <div className='StartHome'>
            首页信息
            {navList.map(item =>
                <div key={item.uuid} onClick={() => Navigate(`/Start/${item.children[0].router_path}`)}>
                    <Button>{item.router_name}</Button>
                </div>
            )}
        </div>
    )
}

export default Home